<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Ekino</title>
	{literal}
	<style>
		body,html{margin:0;padding:0; font-family:Arial; font-size:90%;}
		ul{width:270px;}
		ul{list-style-type:none; margin-left:0; padding-left:0;}
		ul li{border-bottom:1px solid #e0e0e0;}
		ul li a{color:#aaa; text-decoration:none;}
		ul li a:hover{color:#bfbfbf;}
	</style>
	{/literal}
	<base href="http://{$host}/">
	<link type="text/css" rel="stylesheet" href="./css/template.css">
	<script type="text/javascript" src="./js/jquery.js"></script>
	
	{* SKRYPTY JS *}
	{foreach $system->pobierz_wszystkie_js() as $key=>$value}
		<script type="text/javascript" src="./js/{$value}"></script>
	{/foreach}		
	
	{* STYLE CSS *}
	{foreach $system->pobierz_wszystkie_css() as $key=>$value}
		<link type="text/css" rel="stylesheet" href="./css/{$value}">
	{/foreach}	
	
</head>
<body>	
	<div style="margin:0 auto; width:1024px;">
		<div style="background:#eee; width:100%; height:100px; padding-top:10px;">
			<div style="float:left; margin-left:10px; padding-right:10px; display:block;">
				<a href="./index.php" ><img src="./images/logo2.png" alt="" width="80"/></a>
			</div>
			<div style="margin:10px; text-align:right; padding:4px; background:#fff;">
				{if $_LOGGED}
					<a href="./logout.php" alt="" />Wyloguj [{$logged_user_name}]</a>
				{else}
					Nie jesteś zalogowany w systemie <a href="./login.php" alt="" />Zaloguj się</a>
				{/if}
			</div>
			<div>
				<h1>Ekino - Panel kierownika</h1>
			</div>
		</div>
			{if isset($komunikat)}
				<div style="background:#1e1; border:1px solid #ddd;">{$komunikat}</div>
			{/if}
		<center>
			

		{if !$_LOGGED}
			<div style="margin:10px;">
				<div id="login">
				<form method="post" action="./login.php">
					<div class="left">Użytkownik:</div><div><input type="text" name="username" /></div>
					<div class="left">Hasło:</div><div><input type="password" name="userpass" /></div>
					 <div class="submit"><input type="submit" value="Zaloguj się" name="submit" /></div>
				</form>
				</div>
			</div>
		{else}
			{* NAWIGACJA *}
			<div style='width:723px; float:left; padding-left:5px;  height:18px; font-size:11px; background-color:#DEF7FF; text-align:left; line-height:18px; border:1px solid #eee; margin-top:5px; margin-bottom;5px; '> 
				<a href='./index.php' />Strona główna</a>
				{if isset($nawig1)}
				»
				<a href="./{$nawig1['url']}" />{$nawig1['nazwa']}</a>
				{/if}
			</div>
			<div style='width:100%; clear:both; height:5px;'></div>
			<div id="srodek" style="height: 100%; min-height: 100px;">
				<div id="opcje-kierownik">
					<input type="button" id="akceptuj-grupe" name="kierownik" value="Akceptuj grupę zorganizowaną" />
					<input type="button" id="zmien-cene" name="kierownik" value="Zmień cenę biletu" />
					<!--<input type="button" id="dodaj-admina" name="admin" value="Dodaj administratora" />
					
					<input type="button" id="usun-admina" name="admin" value="Usuń administratora" />
					-->
				</div>
				<div id="wyniki"></div>
			</div>
		{/if}
		
		</center>
		<div style="clear:both; width:100%; text-align:center; font-size:10px; background:#eee;">Copyright 2012 - <br />Maciej Pochroń, Adam Nowak, Leszek Rączka</div>
	</div>

</body>
</html